﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IOA.MES.DataAccess.VModel
{
    /// <summary>
    /// 订单产品表
    /// </summary>
    public class VOrderProduct : BaseVModel
    {
        private string _productCode = string.Empty;
        private string _productName = string.Empty;
        private string _color = string.Empty;
        private string _level = string.Empty;
        private string _mainUnitCode = string.Empty;
        private string _mainUnitName = string.Empty;
        private string _power;
        private string _innerOrderNo;

        #region Public Property

        ///<Summary>
        /// 内部订单号
        ///</Summary>
        public string InnerOrderNo
        {
            get { return string.IsNullOrWhiteSpace(_innerOrderNo) ? string.Empty : _innerOrderNo; }
            set { _innerOrderNo = value; }
        }

        ///<Summary>
        /// 订单行号
        ///</Summary>
        public int OrderRowNum { get; set; }

        ///<Summary>
        /// 存货编码
        ///</Summary>
        public string ProductCode
        {
            get { return string.IsNullOrWhiteSpace(_productCode) ? string.Empty : _productCode; }
            set { _productCode = value; }
        }

        ///<Summary>
        /// 存货名称
        ///</Summary>
        public string ProductName
        {
            get { return string.IsNullOrWhiteSpace(_productName) ? string.Empty : _productName; }
            set { _productName = value; }
        }

        ///<Summary>
        /// 功率
        ///</Summary>
        public string Power
        {
            get { return string.IsNullOrWhiteSpace(_power) ? string.Empty : _power; }
            set { _power = value; }
        }

        ///<Summary>
        /// 颜色
        ///</Summary>
        public string Color
        {
            get { return string.IsNullOrWhiteSpace(_color) ? string.Empty : _color; }
            set { _color = value; }
        }

        ///<Summary>
        /// 等级
        ///</Summary>
        public string Level
        {
            get { return string.IsNullOrWhiteSpace(_level) ? string.Empty : _level; }
            set { _level = value; }
        }

        ///<Summary>
        /// 数量
        ///</Summary>
        public int Count { get; set; }

        ///<Summary>
        /// 主计量单位编码
        ///</Summary>
        public string MainUnitCode
        {
            get { return string.IsNullOrWhiteSpace(_mainUnitCode) ? string.Empty : _mainUnitCode; }
            set { _mainUnitCode = value; }
        }

        ///<Summary>
        /// 主计量单位名称
        ///</Summary>
        public string MainUnitName
        {
            get { return string.IsNullOrWhiteSpace(_mainUnitName) ? string.Empty : _mainUnitName; }
            set { _mainUnitName = value; }
        }
        #endregion
    }
}
